package com.weight.common.generate;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
@Data
public class GenerateImp implements Serializable{
	
	private static final long serialVersionUID = 1L;
	@Excel(name = "中文名")
	@NotBlank(message = "该字段不能为空")
	@JsonProperty("cnname")
	private String CNname;
	
	@Excel(name = "英文名")
	@NotBlank(message = "该字段不能为空")
	@JsonProperty("enname")
	private String ENname;
	
	@Excel(name = "类型")
	private String type;
	
	@Excel(name = "位数")
	private String strSize;
	
	@Excel(name = "索引")
	private String index;
//	中文名	英文名	类型	位数	索引

	public GenerateImp(String cNname, String eNname) {
		super();
		CNname = cNname;
		ENname = eNname;
	}

	public GenerateImp() {
		super();
		// TODO Auto-generated constructor stub
	}
	
//	@JsonProperty("ENnameDate")
//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")  
//	private Date ENnameDate;
	  
	
	

}
